<!-- 拦截器测试 -->
<script setup>
import { request } from "../network/request.js"

const interceptorTest = () => {
	request({
		url: "/enhance/player/url",
		// 方法类型
		method: "GET",
		// 参数值
		params: {
			id: "454828887",
			ids: "[454828887]",
			br: "3200000",
		},
	})
		// 这里then中还可以使用axios.spread拆分结果
		.then((result) => {
			console.log("HelloAxios", result)
		})
}
</script>

<template>
	<h1>HelloAxios</h1>
	<button @click="interceptorTest">拦截器测试</button>
</template>

<style></style>
